import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

import pathList from "@/router/path";

const routes = [
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: '/home',
        name: '首页',
        component: () => import('@/views/home/index')
    },
    ...pathList
]

const router = new VueRouter({
    mode: 'history',
    routes
})

export default router